From: Zhi-Jun You Date: Tue, 30 Sep 2025 02:51:28 +0000 (+0800) Subject: luci-app-usteer: fix menu showing on login screen X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=874dc4bae5a98199b5c4cc6426da299949df6dcd;p=project%2Fluci.git luci-app-usteer: fix menu showing on login screen Currently menu entry is always shown even at the login screen. Fix this by setting acl dependency. Also fix the indent. Signed-off-by: Zhi-Jun You --- diff --git a/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json b/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json index 39ce0ff9d7..ffa4c398a6 100644 --- a/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json +++ b/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json @@ -1,10 +1,13 @@ { - "admin/network/usteer": { - "title": "Usteer", - "order": 80, - "action": { - "type": "view", - "path": "usteer/usteer" - } - } + "admin/network/usteer": { + "title": "Usteer", + "order": 80, + "action": { + "type": "view", + "path": "usteer/usteer" + }, + "depends": { + "acl": [ "luci-app-usteer" ] + } + } }